<template>
  <div id="app">
     <router-view   />
   
    
  </div>
</template>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js" type="text/javascript"></script>

<script>


export default {
  name: 'App',
  mounted(){
      
    if(!localStorage.getItem('openid')&&!this.$route.query.openid){
       window.location.href='http://hexiao.boxinyao.com/user/user/login'
    }
     
  },
}
</script>

<style lang="less">

@import './assets/fonts/iconfont.css';

* {
  font-family: -apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC','Hiragino Sans GB','Microsoft Yahei',sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  border: 0;


}


</style>
